package com.css.fxfzaqbz.modules.assess.repository;

import com.css.fxfzaqbz.modules.assess.entity.DisasterAssEntity;
import com.css.fxfzaqbz.modules.assess.entity.RiskAssessmentEntity;
import com.css.fxfzaqbz.modules.assess2.entity.TaskContent;
import com.css.fxfzaqbz.zcpt.sys.entity.SUser;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author y1fan
 * @create 2022-09-09 16:15
 */
public interface DisasterRepository {


    DisasterAssEntity saveDisasterAss(DisasterAssEntity disasterAssEntity);

    List<DisasterAssEntity> getAllDisasterAss(String id);

    List<DisasterAssEntity> getDisasterAssBySi(String fileTotal, String sdaRelation);

    DisasterAssEntity updateDisasterAss(DisasterAssEntity disasterAssEntity, String sdaId);

    DisasterAssEntity getDisasterAssById(String id);

    void deleteDisasterAss(String id, String userID, Timestamp currentTimestamp);

    DisasterAssEntity updateDisasterAssD(DisasterAssEntity disasterAssEntity);

    List<TaskContent> getAllDisasterAss1(String id);

    void firstSubmitDisasterAss(String id, String userID, Timestamp currentTimestamp,String describe);

    DisasterAssEntity ifRepetition(DisasterAssEntity disasterAssEntity);

    List<DisasterAssEntity> getBigDisasterTwo(String id);

    void addDescribe(List<String> ids, String describe);

    void removeDisasterAss(DisasterAssEntity disasterAssEntity);

    void firstSubmitDisasterAss2(String id, String userID, Timestamp currentTimestamp);

    void secendSubmitDisasterAss(List<String> ids, SUser sUser,Timestamp currentTimestamp);

    List<DisasterAssEntity> getDisasterAssByIaId(String id);

    List<DisasterAssEntity> getDisasterAssByIaaId(String iaId);
}
